package megrez.boot.autoconfigure.okhttp.logging;

import org.springframework.boot.context.properties.ConfigurationProperties;

import lombok.Data;
import okhttp3.logging.HttpLoggingInterceptor;

/**
 * 日志拦截配置
 *  
 * @author Lucky Yang
 * @since 2.6.9
 */
@Data
@ConfigurationProperties(prefix = "okhttp.logging")
public class OkHttp3LoggingInterceptorProperties {
    private boolean enabled;
    /**
     * 日志等级
     */
    private HttpLoggingInterceptor.Level level = HttpLoggingInterceptor.Level.NONE;
}
